#!/bin/sh
#
# $OpenBSD: apache2.rc,v 1.4 2016/06/22 08:27:07 ajacoutot Exp $

daemon="${TRUEPREFIX}/sbin/httpd2"

. /etc/rc.d/rc.subr

# mod_perl resets $0 to argv[0]
pexp=".*${daemon}.*"
rc_reload=NO

rc_start() {
	${TRUEPREFIX}/sbin/apachectl2 graceful ${daemon_flags}
}

rc_stop() {
	${TRUEPREFIX}/sbin/apachectl2 graceful-stop
}

rc_cmd $1
